package com.yuelu.community.community.dao;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

/**
 * ClassName: AlphaDaoMybatisImpl
 * Description:
 *
 * @Author 文勇
 * @Create 2024/8/7 11:14
 * @Version 3.0
 */
@Repository
@Primary   //这就是解耦呀，不想用hibernate了，直接改mybatis,我们直接加个bean，加个@Primary注解，测试程序，主程序都可以不用改！
public class AlphaDaoMybatisImpl implements AlphaDao {
    @Override
    public String select() {
        return "mybtais";
    }
}
